package com.wish.controller;


import com.github.pagehelper.PageInfo;
import com.wish.dto.TJrFactoringDetailDto;
import com.wish.entity.TJrFactoringDetail;
import com.wish.service.ITJrFactoringDetailService;
import com.wish.vo.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 五组
 * 维数公寓保理审查
 * @since 2021-04-08
 */
@RestController
@RequestMapping("/wish/t-jr-factoring-detail")
public class TJrFactoringDetailController {

    @Autowired
    ITJrFactoringDetailService itJrFactoringDetailService;

    //列表查询
    @RequestMapping("list")
    public ResultEntity list(TJrFactoringDetailDto tJrFactoringDetailDto){

        PageInfo<TJrFactoringDetail> list = itJrFactoringDetailService.getlist(tJrFactoringDetailDto);

        return ResultEntity.ok("200","成功",list);
    }

}
